package com.zuo.mall.controller;

import com.zuo.mall.common.api.CommonResult;
import com.zuo.mall.entity.OmsCompanyAddress;
import com.zuo.mall.service.OmsCompanyAddressService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("退货地址")
@RequestMapping("companyAddress")
@RestController
public class OmsCompanyAddressController {
    @Autowired
    private OmsCompanyAddressService companyAddressService;
    @GetMapping("list")
    public CommonResult getList() {
        List<OmsCompanyAddress> list =
                companyAddressService.list();
        return CommonResult.success(list);
    }
}
